<script setup>
// 获取仓库
import { useUserStore } from '@/store/modules/user'
import {getTime} from '@/utils/time'
import setting from '@/setting'

const userStore = useUserStore()

</script>

<template>
  <div>
    <el-card>
      <div class="top1">
        <img :src="userStore.avatar" alt="" class="avatar">
        <div class="info">
          <p class="tips">{{ getTime() + `好呀` + userStore.username }}</p>
          <h1 class="title">{{ setting.title }}</h1>
        </div>
      </div>
    </el-card>
    <div class="bottom1">
      <img src="../../assets/icons/welcome.svg" alt="" style="width: 600px;height: 500px;">
    </div>
  </div>
</template>

<style scoped>
.top1 {
  display: flex;
  align-items: center;
  .avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: aqua;
  margin-right: 20px;
  }
  .info {
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    .tips {
      font-size: 28px;
      font-weight: 700;
    }
    .title {
      font-size: 16px;
      color: #999;
    }
  }
}
.bottom1 {
  display: flex;
  justify-content: center;
}
</style>
